package entity;

public class TravelGuideInfo {

    private int id;
    private String title;
    private String content;
    private String imagePath;
    private int likeCount;
    private boolean isLiked;

    public TravelGuideInfo(int id, String title, String content, String imagePath, int likeCount) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.imagePath = imagePath;
        this.likeCount = likeCount;
        this.isLiked = false;
    }

    public int getId() {
        return id;
    }

    public boolean isLiked() {
        return isLiked;
    }

    public void setLiked() {
        isLiked = true;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }

    public int getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(int likes) {
        this.likeCount = likes;
    }

    public void toggleLike() {
        likeCount++;
        setLiked();
    }
}
